Skip to content

Run Ruff only on selected changed Python files in PRs (#71) - #110

Merged
NiveditJain merged 9 commits into
FailproofAI:mainfrom
bhaveshAswani112:main
Jul 29, 2025
Merged

Run Ruff only on selected changed Python files in PRs (#71)#110
NiveditJain merged 9 commits into
FailproofAI:mainfrom
bhaveshAswani112:main

Conversation

@bhaveshAswani112

Copy link
Copy Markdown
Contributor

This PR addresses Issue #71 by optimizing the Ruff linting process in the CI pipeline.

What’s implemented:

  • Introduced a custom Ruff workflow that:
    • Detects changed .py files only in the api-server/ and state-manager/ directories.
    • Runs ruff check only on those changed files during PRs and pushes.
    • Skips Ruff if no relevant Python files were modified.
  • No longer uses the predefined astral-sh/ruff-action, which scanned the entire folders.
  • Instead, Ruff is installed manually and executed selectively on modified files — making the workflow more efficient and faster.

@NiveditJain
NiveditJain merged commit aad7bf3 into FailproofAI:main Jul 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants